package com.lineage.server.command.executor;

import com.lineage.server.datatables.DropMapTable;
import com.lineage.server.datatables.DropMobTable;
import com.lineage.server.datatables.DropTable;
import com.lineage.server.model.Instance.L1PcInstance;
import com.lineage.server.serverpackets.S_SystemMessage;
import com.lineage.server.serverpackets.ServerBasePacket;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

public class L1ReloadDroplist implements L1CommandExecutor {
  private static final Log _log = LogFactory.getLog(L1ReloadDroplist.class);
  
  public static L1CommandExecutor getInstance() {
    return new L1ReloadDroplist();
  }
  
  public void execute(L1PcInstance paramL1PcInstance, String paramString1, String paramString2) {
    DropTable.get().load();
    DropMapTable.get().load();
    DropMobTable.get().load();
    paramL1PcInstance
      .sendPackets((ServerBasePacket)new S_SystemMessage("[droplist]和[droplist_map]和[全地图掉落]资料库已重读完成!"));
  }
}
